package mysql

import "gorm.io/gorm"

var global_mysql *gorm.DB

func setGlobalDB(global *gorm.DB) {
	global_mysql = global
}

func GetGlobalDB() *gorm.DB {
	return global_mysql
}

func BeginTran() *gorm.DB {
	return global_mysql.Begin()
}
